package be.gnx.fogo.application.ui;

import java.util.ResourceBundle;

import org.eclipse.swt.events.ControlEvent;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.widgets.Composite;

import be.gnx.fogo.application.model.Person;

public class SpouseGroup extends AbstractParentGroup {

  public SpouseGroup(Composite composite, int style, ResourceBundle resourceBundle) {
    super(composite, style, resourceBundle);
    this.setText("Spouse");
  }

  protected void setAsFamily(boolean asFamily) {
    super.setAsFamily(asFamily);
    if (asFamily) {
      this.setText("Maternal");
    } else {
      this.setText("Spouse");
    }
  }

  protected void widgetDisposed(DisposeEvent disposeEvent) {
    // TODO;
  }

  protected void controlResized(ControlEvent controlEvent) {
    resize();
  }

  protected void setPerson(Person person) {
    super.setPerson(person);
  }

  @Override
  protected void resize() {
    super.resize();
  }

}
